package edu.zut.cs.software.propertymanagement.security.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import edu.zut.cs.software.base.domain.BaseEntity;
import javax.persistence.ManyToOne;
import javax.persistence.JoinColumn;
	@Table(name = "T_SECURITYGUARD") // 声名数据库表	
	@Entity 
	public class Securityguard  extends BaseEntity{		
		  /**
		 * 
		 */
		private static final long serialVersionUID = 1L;
	
		@ManyToOne
		@JoinColumn(name = "SECURITYGUARD_ID")
		Securityguard securityguard;
		
		
		@Column(name="PASSWORD")
	      String password;
		@Column(name="USERNAME")
		  String username;
		@Column(name="PHONE")
			 int phone;
		@Column(name="WORKTIME")
			 String Worktime;
		public Securityguard getSecurityguard() {
			return securityguard;
		}
		public void setSecurityguard(Securityguard securityguard) {
			this.securityguard = securityguard;
		}

		public String getUsername() {
			return username;
		}
		public void setUsername(String username) {
			this.username = username;
		}		
		public String getPassword() {
			return password;
		}
		public void setPassword(String password) {
			this.password = password;
		}
		public int getPhone() {
			return phone;
		}
		public void setPhone(int phone) {
			this.phone = phone;
		}

		public String getWorktime() {
			return Worktime;
		}
		public void setWorktime(String worktime) {
			Worktime = worktime;
		}
		
}
